import { patchZero } from '@/utils/format/string'
const timeSoure = new Date()

export const nowYear = timeSoure.getFullYear()
export const nowMonth = timeSoure.getMonth() + 1
export const nowDate = timeSoure.getDate()
export const nowDay = timeSoure.getDay()
export const nowYearMonthDateFormat = `${nowYear}-${patchZero(nowMonth)}-${patchZero(nowDate)}`
export const nowTimeZone = timeSoure.getTimezoneOffset() / -60
const nowTimeZoneAbs = Math.abs(nowTimeZone)
export const nowTimeZoneText = `${nowTimeZone > 0 ? '+' : '-'}${patchZero(nowTimeZoneAbs)}:00`
